{include file='header.html'}
 
<ul class="nav nav-tabs">
<li class="active"><a href="{$appadmin}?m=module">{$lang.module_admin}</a></li>
<li><a href="http://www.deitui.com/index.php?m=yunmodule&product=xyo2o">应用商店</a></li>
</ul>

<div class="rbox">
<div class="search-form">
	下载秘钥 <input type="text" id="downcode"> <div class="btn" id="yun_app_install">安装</div>
</div>

<table width="100%" class="table table-bordered">
<tr>
{foreach item=c from=$mods}
<td width="15%">{$c.title}</td>
<td width=" ">{$c.info}</td>
<td width="22%">{if $c.isinstall}<font style="color:red"><a href='javascript:;' onclick="if(confirm('{$lang.confirm_uninstall_module}')){window.location.href='{$appadmin}?m=module&a=uninstall&inmodule={$c.module}';}">{$lang.uninstall}</a></font> <a href="/module.php?m={$c.module}" target="_blank">{$lang.view}</a>
<a href="{$c.adminurl}" target="menu-frame" >管理</a>
 
{else}<a href='{$appadmin}?m=module&a=install&inmodule={$c.module}'>{$lang.install}</a>{/if}
 
 
</td>
</tr>
{/foreach}
</table>
</div>
<script>
$(function(){
	$(document).on("click","#yun_app_install",function(){
		$.post("{$appadmin}?m=module&a=DownInstall&ajax=1&downcode="+$("#downcode").val(),function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast(data.message);
			}
		},"json");
	});
});
</script>
{include file='footer.html'}